import request from "../utils/request";

export const getLawyersByCondition=(param)=>{
    return request({
        url:"lawyer/list",
        method:"get",
        params:param
    })
}
export const addLawyer=(param)=>{
    return request({
        url:"lawyer/add",
        method:"post",
        data:param
    })
}
export const editLawyer=(param)=>{
    return request({
        url:"lawyer/edit",
        method:"post",
        data:param
    })
}
export const selectCase=(param)=>{
    return request({
        url:"lawyer/selectCase",
        method:"post",
        data:"lawyerName="+param
    })
}
export const selectLawyerName=(param)=>{
    return request({
        url:"lawyer/selectLawyerName",
        method:"post",
        data:"lawyerName="+param
    })
}
export const selectVictoryCase=(param)=>{
    return request({
        url:"lawyer/selectVictoryCase",
        method:"post",
        data:"lawyerName="+param
    })
}
export const selectFaildCase=(param)=>{
    return request({
        url:"lawyer/selectFaildCase",
        method:"post",
        data:"lawyerName="+param
    })
}
export const selectTalkCase=(param)=>{
    return request({
        url:"lawyer/selectTalkCase",
        method:"post",
        data:"lawyerName="+param
    })
}



